﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Interfaces;

namespace TidsRegWcfService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ITidsRegService" in both code and config file together.
    [ServiceContract]
    public interface ITidsRegService
    {
        [OperationContract]
        void OpretProjekt(string navn, string beskrivelse, decimal normTid);

        [OperationContract]
        void OpretMedarbejder(string navn, decimal timerPrUge, string kode,bool admin);

        [OperationContract]
        void RedigerProjekt();

        [OperationContract]
        void RedigerMedarbejder(int id, string navn, decimal timerPrUge, string kode, bool admin);

        [OperationContract]
        void SletProjekt();

        [OperationContract]
        void SletMedarbejder();

        [OperationContract]
        List<IProjekt> HentAlleProjekter();

        [OperationContract]
        string[] HentAlleMedarbejder();

        [OperationContract]
        string[] Hent1Medarbejder(int id);

        [OperationContract]
        void OpretRegistrering();

        [OperationContract]
        void RedigerRegistrering();

        [OperationContract]
        void SletRegistrering();

        [OperationContract]
        void HentAlleRegistreringer();

        [OperationContract]
        bool Login(string brugernavn, string kodeord, out bool adminRet);
    }
}
